package com.woniu113.junk.site.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu113.junk.site.dto.AllStationInfoDTO;
import com.woniu113.junk.site.model.StationInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu113.junk.site.param.stationinfo.AddStationInfoParam;
import com.woniu113.junk.site.param.stationinfo.AllStationInfoParam;
import com.woniu113.junk.site.param.stationinfo.UpdateStationInfoParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 蜡笔没了小新
 * @since 2024年10月16日
 */
public interface StationInfoService extends IService<StationInfo> {

    public StationInfo addStationInfo(AddStationInfoParam param) throws Exception;

    public void updateStationInfo(UpdateStationInfoParam param);

    public void temporarilyCloseStationInfo(Integer stationId);

    public void closeStationInfo(Integer stationId);



    public StationInfo findFatherStationById(Integer stationId);

    List<StationInfo> findChildStationById(Integer stationId);

    public List<StationInfo> findChildStationByCityAndCounty(String city, String county);

    public StationInfo findFatherStationByCityAndCounty(String city, String county);

    public List<StationInfo> findFatherStation();

    AllStationInfoDTO findAll(AllStationInfoParam param, Integer offset);
}
